package com.changanw.aware.service;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Service;

/**
 * @author changanw
 * @version ncc1.0
 * @description TODO
 * @date 2023/6/25 15:34
 */
@Service
public class UserService implements BeanNameAware {
  public void sayHello(){
    System.out.println("hello ");
  }
  public void sayHello(String name){
    System.out.println("hello " + name);
  }
  @Override
  public void setBeanName(String s) {
    System.out.println("bean name is : " + s);
  }
}
